﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script src="../jquery-1.8.0.js" type="text/javascript"></script>
    <script type="text/javascript">
        window.onload = function () {
            $("div").data("role") === "page";
            $("div").data("lastValue") === 43;
            $("div").data("hidden") === true;
            $("div").data("options").name === "John";

            $('body').data('bar', { myType: 'test', count: 40 });
            alert($('body').data("bar"));
        };
    </script>
</head>
<body>
<div data-role="page" data-last-value="43" data-hidden="true" data-options='{"name":"John"}'></div>
</body>
</html>
